Skip to content

Disable automatic application start after install via Windows Installer #942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 6, 2022
Merged

Disable automatic application start after install via Windows Installer #942

merged 1 commit into from
Apr 6, 2022

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Apr 5, 2022

Arduino IDE is packaged for Windows in multiple formats:

The interactive installer of the NSIS package makes it the best option for installation by users.

The other use case for the installers is deployment by a system administrator. The Windows Installer package was added to offer an additional installer option for this specific use case.

Previously, the Windows Installer package was configured to start the Arduino IDE after completing the installation. That behavior is likely to be problematic for the very use case the Windows Installer package is intended for, where a "silent install" will often be required (example). That "run after finish" configuration was not intentional, but rather a result of using whatever setting electron-builder happened to provide as a default.

The configuration of the Windows Installer package is hereby changed to not run after installation by setting the electron-builder build.msi.runAfterFinish configuration key to false. This also aligns the Windows Installer package with the behavior of the NSIS package's silent installation (running the installer with the /S flag).

The behavior of the NSIS installer is unchanged:

  • When in interactive mode: user chooses whether to start Arduino IDE
  • When in silent mode: Arduino IDE does not start after installation

Arduino IDE is packaged for Windows in multiple formats:

- ZIP
- NSIS
- Windows Installer (AKA "MSI")

The interactive installer of the NSIS package makes it the best option for installation by users.

The other use case for the installers is deployment by a system administrator. The Windows Installer package was added
to offer an additional installer option for this specific use case.

In this use case, a "silent install" will often be required. Previously, the Windows Installer package was configured to
start the Arduino IDE after completing the installation. This behavior is likely to be problematic for the very use case
the Windows Installer package was intended for. That configuration was not intentional, but rather a result of using
whatever setting electron-builder happened to provide as a default.

The behavior of the Windows Installer package is hereby changed to not run after installation. This also aligns it with
the behavior of the NSIS package's silent installation (running the installer with the `/S` flag).

The behavior of the NSIS installer is unchanged:

- When in interactive mode: user chooses whether to start Arduino IDE
- When in silent mode: Arduino IDE does not start after installation
@per1234 per1234 requested review from ubidefeo and AlbyIanna April 5, 2022 07:37
@per1234 per1234 self-assigned this Apr 5, 2022
Copy link
Contributor

@AlbyIanna AlbyIanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful @per1234, thank you! ✨
I have no way to test this right now, but I trust you 😉
LGTM 🚀

@AlbyIanna AlbyIanna merged commit e5b3462 into arduino:main Apr 6, 2022
@per1234 per1234 added type: enhancement Proposed improvement topic: infrastructure Related to project infrastructure os: windows Specific to Windows operating system labels Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: windows Specific to Windows operating system topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants